<?php
/**  
* supprt.php
* 
*  
*/

require_once($_SERVER['DOCUMENT_ROOT'].'/2013p79/common/_init.php');
require_once(CLASS_PATH."/__autoload.php");

class SearchPrinter extends PrinterPage 
{
	public function get_content()
	{
		$mod = new Pagemgr($this, 'SupPrt', 'Printer');  //  $this, $controller, $view
		$body = $mod->create();
		
		$mod   = new Aside($this);
		$aside = $mod->create();		
		
		
		$mod = new LayoutSearch
		(
			$this,
			array($body),
			array(),  // $aside
			array()
		);
		return $mod->create();
	}
}

$serial 	= $_GET['sSerial']; 
$sName		= urldecode($_GET['sName']); 

$arr     	= explode('|', $serial);
$serial	= (isset($arr[1])) ? $arr[1] : $arr[0];

$stateInfo 	= '&#91;'.$sName.'&#93;를 사용하는 프린터 ';
$page 		= new SearchPrinter;  
$page->set_subTitle($stateInfo);
$page->set_info(' 조회 &gt; '.$stateInfo);
$page->set_args($serial);

$page->create();
echo $page->get_page();

?>